package cn.tide.question2.dao;

import cn.tide.question2.domain.Hobby;
import cn.tide.question2.domain.Person;
import org.springframework.stereotype.Repository;

@Repository
public interface HobbyDao {
    Hobby findByName(String name);
    Hobby findById(int hobbyId);
    void addPersonHobby(Person person);
    int[] findHidByPid(int personId);

    void deletePersonHobby(int id);

}
